package bug 
{
	import flash.utils.Dictionary;
	
	
	
	//import models.ObjectModel;

	public class StaticData
	{
		private var source:Dictionary = new Dictionary();
		//private var a:Array=[,"commonEquip","seniorEquip","animalEquip","specialEquip","item"];
		public function StaticData()
		{
		}
		public function push(key:String,data:XML):void{
			source[key] = data;
		}
		

		public function getLevelDataByLevel(level:int):XMLList
		{
			// TODO Auto Generated method stub
			return source["level"].castle.(@level==level);
		}
		public function getLevel():XML{
		    return source["level"];
		}
		public function getBuffById(id:int):XML{
		    return source["buff"].(@id==id);
		}
		public function getAlllBuff():XML{
		   return source["buff"];
		}
	

	}
}